# -*- cmake -*-

set(IRRNLS_ENGINE_LIBRARY "Irrlicht")
load_library_source_from_web(
	"${IRRNLS_ENGINE_LIBRARY}"
	"${IRRNLS_ENGINE_LIBRARY}" # no trailing slash
	"http://downloads.sourceforge.net/project/irrlicht/Irrlicht%20SDK/1.7/1.7.3/irrlicht-1.7.3.zip"
	"cfbdc8c68fbca544c7c8dfb3623ae086"
)

#* * * * * * * * * * * * * * * * * * * * *
# Install header(s) in tree


message("Making directory 'include/irrlicht/'...")
file(MAKE_DIRECTORY "include/irrlicht/")


message("Copying irrlicht header...")
message("${LIB_Irrlicht_DIR}")
FILE(COPY "${LIB_Irrlicht_DIR}/irrlicht-1.7.3/include/" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/include/irrlicht/")
message("Done.")

set(Irrlicht_FOUND 1)
	
if(EXISTS "include/irrlicht/")
	set(Irrlicht_FOUND 1)
endif(EXISTS "include/irrlicht/")

